x86/p2m: please Clang after making certain parts HVM-only
authorJan Beulich <jbeulich@suse.com>
Wed, 5 May 2021 07:07:30 +0000 (09:07 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 5 May 2021 19:20:42 +0000 (20:20 +0100)
commit09fc903c5ac042e2e1eb54e58ea7f207ed12ee16
tree8074f7fa4a571fede1eb0300c08da588993015fc
parente19b01c186e061e23fac80ff7cbf83e622f384fe
x86/p2m: please Clang after making certain parts HVM-only

Move a few #ifdef-s, to account for diagnostics like

p2m.c:549:1: error: non-void function does not return a value in all control paths [-Werror,-Wreturn-type]

which appear despite paging_mode_translate() resolving to constant
"false" when !HVM. All of the affected functions are intended to become
fully HVM-only anyway, with their non-translated stub handling split off
elsewhere.

Fixes: 8d012d3ddffc ("x86/p2m: {get,set}_entry hooks and p2m-pt.c are HVM-only")
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/mm/p2m.c